<?php

namespace Trois\Init;

use Trois\Design\Observer\Observer;
use Trois\Init\Inits\DiInit;
use Trois\Init\Inits\ErrorInit;
use Trois\Init\Inits\OrmInit;
use Trois\Init\Inits\RedisPoolInit;

class Init
{
    public function run()
    {

        $observer = new Observer();

        $observer->add(DiInit::getInstance());
        $observer->add(ErrorInit::getInstance());
        $observer->add(RedisPoolInit::getInstance());
        $observer->add(OrmInit::getInstance());

        $observer->notify();

    }
}